package com.power.sifa.approve.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.approve.model.Apl_limit_reply;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 被申请人答复时限 持久层(hibernate)
 */

public interface Apl_limit_replyDao extends JpaRepository<Apl_limit_reply, Serializable>, JpaSpecificationExecutor<Apl_limit_reply>, Repository<Apl_limit_reply, Serializable>, Apl_limit_replyDaoCustom<Apl_limit_reply, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Apl_limit_reply s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
